package com.example.day07_tab;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


public class BlankFragment2 extends Fragment {



    public BlankFragment2() {
        // Required empty public constructor
    }



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View inflate = inflater.inflate(R.layout.fragment_blank2, container, false);
        Log.d("sss", "onCreateView: 加载页面时就展示了");
        return inflate;
    }

    @Override
    public void onResume() {

        super.onResume();
        //执行具体的操作
        Log.d("sss", "onResume: 点击当前界面时才显示");
    }
}